#ifndef _SPI_H_
#define	_SPI_H_

#ifndef _XTAL_FREQ
#define _XTAL_FREQ	4000000
#endif

#define	SCK	RE0
#define	SDO	RE1
#define	SDI	RE2
#define	SS	RA5

void spi_init();
void spi_write(char c);
char spi_read();

#endif